package com.qf.j2105.controller;

import com.qf.j2105.po.CarCollect;
import com.qf.j2105.service.GzesbdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class BaiyibtController {
    @Autowired
    GzesbdService gzesbdService;
    @RequestMapping("/bybt")
    public List<CarCollect> bybtall(){
        List<CarCollect> carCollects = gzesbdService.findallMVP();
        return carCollects;
    }
}
